package com.project.bean;

import java.util.List;

/**
 * 商品实体类
 */
public class CommodityBean {
    /**商品编号*/
    private Integer id;
    /**商品名*/
    private String name;
    /**图片*/
    private String imgPath;
    /**商品单价*/
    private Integer price;
    /**评论数量*/
    private Integer commentNum;
    /**评论集合*/
    private List<CommentBean> commentList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public List<CommentBean> getCommentList() {
        return commentList;
    }

    public void setCommentList(List<CommentBean> commentList) {
        this.commentList = commentList;
    }

    @Override
    public String toString() {
        return "CommodityBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", price=" + price +
                ", commentNum=" + commentNum +
                ", commentList=" + commentList +
                '}'+"\n";
    }
}
